package info.pixstone.foodhunter.domain.mediator;

import info.pixstone.foodhunter.acquaintance.IAAdWord;
import info.pixstone.foodhunter.acquaintance.IADishes;
import info.pixstone.foodhunter.acquaintance.IAInvitation;
import info.pixstone.foodhunter.acquaintance.IALocation;
import info.pixstone.foodhunter.acquaintance.IAPhoto;
import info.pixstone.foodhunter.acquaintance.IARestaurant;
import info.pixstone.foodhunter.acquaintance.IAUser;
import info.pixstone.foodhunter.acquaintance.IAWeibo;

public abstract class DaoFactory
{
	public static DaoFactory  getInstance(String classname) 
	{
		DaoFactory dao=null;
		try {
			dao=(DaoFactory) Class.forName(classname).newInstance();
		} catch (Exception e) {
			e.printStackTrace();
			System.out.println("Can't instance a DaoFactory!");
		}
		return dao;		
	}
	
	public abstract IARestaurant createRestaurant();
	public abstract IAPhoto createPhoto();
	public abstract IALocation createrLocation();
	public abstract IADishes createDish();
	public abstract IAUser createUser();
	public abstract IAAdWord createAdWord();
	public abstract IAInvitation createInvitation();
	public abstract IAWeibo createWeibo();

	public IALocation createrLocation(int id,double longitude,double lat) {
		// TODO Auto-generated method stub
		return null;
	}

}
